package com.echat.messagesender.sender.service.impl;

import com.echat.messagesender.sender.mapper.PlatformAccountMapper;
import com.echat.messagesender.sender.mapper.PlatformMapper;
import com.echat.messagesender.sender.model.Platform;
import com.echat.messagesender.sender.model.PlatformAccount;
import com.echat.messagesender.sender.service.PlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenmohan on 2018/09/10
 *
 * @description
 */
@Service
public class PlatformServiceImpl implements PlatformService {

    @Autowired
    PlatformMapper platformMapper;

    @Autowired
    PlatformAccountMapper platformAccountMapper;

    @Override
    public List<Platform> listAllPlatforms() {
        return null;
    }

    @Override
    public void addPlatform(Platform platform) {
        platformMapper.insertSelective(platform);
    }

    @Override
    public void addPlatformAccount(PlatformAccount platformAccount) {
        platformAccountMapper.insertSelective(platformAccount);
    }


}
